package com.example.zzh.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.zzh.entity.ZzhStaff;
import com.example.zzh.mapper.ZzhStaffMapper;
import com.example.zzh.mapper.ZzhUserMapper;
import com.example.zzh.service.ZzhStaffService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author zzh
 * @since 2023-07-28
 */
@Service
public class ZzhStaffServiceImpl extends ServiceImpl<ZzhStaffMapper, ZzhStaff> implements ZzhStaffService {

    @Resource
    private ZzhStaffMapper zzhStaffMapper;
    @Override
    public IPage pageName(Page<ZzhStaff> page) {
        return zzhStaffMapper.pageName(page);
    }

    @Override
    public IPage pageNames(Page<ZzhStaff> page, Wrapper wrapper) {
        return zzhStaffMapper.pageNames(page,wrapper);
    }

    @Override
    public ZzhStaff getRoleById(Long id) {
        return zzhStaffMapper.selectById(id);
    }
}
